#creat user Barrows password RockSolid1 #remove one drive #turn off news and interests. #Taskbar settings Always show icons in notification area On #Themes Desktop icon settings. Show all five under desktop icons #Reputation based protection check apps and files off # ethernet private #security and maintance/change secuirty and maintanence settings only have virus protection in secutrity and everything but windows back in maintence messages #firewall off public and private #Local secuirty policy security options #user account control Run all administrators in Admin Approval Mode. Disabled #sleep off and turn off display in opne hour #install Java #Advanced sharing settings,all networks Turn on sharing so anyone with network adccess can read and write to public folder. #Enable file shariong for devices that use 40-56-bit encryption #windows .net framework 3.5 and 4.8 advanced all components in windows features. #SMB 1.0Cfis Server on #preinstall printer drives and Dymo Drivers #Rocksolidpos.com/rock_sp5.exe and wait to install it. #fastsupport shortcut to desktop #services, function discovery provider host turn to automamtic. Revocery all three settings restart the service #same with Function discovery Resource publication properties. #ssDP same thing #system properties. automattical managin paging file, off. custom size 24576 initial and maximum size 49152 #install Rock solid_sp2 right click and run as administrator install it as a client no need to reboot yet. #Pin the new softweare to start. #run RSClassicRUA.reg #right click POS shortcut, properties compatability and change settings for all users. high dpi settings and override to system. #same with ROMAN shortcut. #### # Create User Account New-LocalUser -Name "Barrows" -Password (ConvertTo-SecureString -String "RockSolid1" -AsPlainText -Force) # Remove OneDrive # PowerShell doesn't provide a direct way to uninstall OneDrive, so you may need to use other methods or utilities. # Turn off News and Interests Set-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Feeds" -Name "ShellFeedsTaskbarViewMode" -Value 2 # Taskbar Settings: Always show icons in the notification area Set-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced" -Name "TaskbarSmallIcons" -Value 0 # Themes Desktop Icon Settings: Show all five desktop icons Set-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\NewStartPanel" -Name "{59031A47-3F72-44A7-89C5-5595FE6B30EE}" -Value 0 # Reputation based protection: Check apps and files off Set-MpPreference -MAPSReporting Disabled # Ethernet Configuration: Set to private Get-NetConnectionProfile | Set-NetConnectionProfile -NetworkCategory Private # Security and Maintenance: Configure security and maintenance settings Set-MpPreference -PUAProtection Enabled Set-MpPreference -DisableArchiveScanning $true # Firewall Configuration: Turn off public and private firewall profiles Set-NetFirewallProfile -Profile Public, Private -Enabled False # Local Security Policy: Set User Account Control to Disabled Set-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System" -Name "EnableLUA" -Value 0 # Power Settings: Disable sleep and turn off display in one hour powercfg -change -standby-timeout-ac 0 powercfg -change -monitor-timeout-ac 60 # Install Java # Define the path to the Java installer $installerPath = "C:\Users\Barrows\Downloads\jre-8u371-windows-x64" # Run the Java installer silently Start-Process -FilePath $installerPath -ArgumentList "/s" -Wait # Advanced Sharing Settings: Enable sharing for anyone with network access to the public folder Set-NetFirewallRule -DisplayGroup "File and Printer Sharing" -Enabled True # Enable SMBv1 protocol Set-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters" -Name "SMB1" -Value 1 Set-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Services\LanmanWorkstation\Parameters" -Name "AllowInsecureGuestAuth" -Value 1 # Windows .NET Framework: Enable .NET Framework 3.5 and 4.8 Enable-WindowsOptionalFeature -FeatureName "NetFx3" -Online Enable-WindowsOptionalFeature -FeatureName "NetFx4-AdvSrvs" -Online # Preinstall Printer Drivers and Dymo Drivers # Define the path to the DLS8Setup8.7.4.exe installer $installerPath = "C:\Users\Barrows\Downloads\DLS8Setup8.7.4.exe" # Define the path to the setup.exe file $installerPath = "C:\Users\Barrows\Downloads\starprnt_v3.8.1\setup\setup.exe" # Run the setup.exe installer silently Start-Process -FilePath $installerPath -ArgumentList "/S" -Wait # Run the DLS8Setup8.7.4 installer silently Start-Process -FilePath $installerPath -ArgumentList "/S" -Wait # Install RockSolidPOS Software # Define the path to the Rock_SP2 installer $installerPath = "C:\Users\Barrows\Downloads\Rock_SP2.exe" # Run the Rock_SP2 installer silently Start-Process -FilePath $installerPath -ArgumentList "/S" -Wait # URL for FastSupport $targetPath = "https://fastsupport.gotoassist.com/" # Path for the new web shortcut on the public desktop $shortcutFile = "C:\Users\Public\Desktop\FastSupport.url" # Create the shortcut $shortcut = New-Object -ComObject WScript.Shell $shortcut = $shortcut.CreateShortcut($shortcutFile) # Set the URL as the target of the shortcut $shortcut.TargetPath = $targetPath # Save the shortcut $shortcut.Save() # Services: Set Function Discovery Provider Host to start automatically and restart the service Set-Service -Name FDResPub -StartupType Automatic Restart-Service -Name FDResPub # Services: Set Function Discovery Resource Publication to start automatically and restart the service Set-Service -Name FDphost -StartupType Automatic Restart-Service -Name FDpHost -force # Services: Set SSDP Discovery to start automatically and restart the service Set-Service -Name SSDPSRV -StartupType Automatic Restart-Service -Name SSDPSRV # System Properties: Configure paging file settings Set-CimInstance -Class Win32_ComputerSystem -Property @{AutomaticManagedPagefile = $false} Set-CimInstance -Class Win32_PageFileSetting -Property @{InitialSize = 24576; MaximumSize = 49152} # Install RockSolid_SP2 as a client Start-Process -FilePath "C:\Users\Barrows\Downloads\rock_sp2.exe" # Run RSClassicRUA.reg regedit.exe /s "C:\Users\Barrows\Downloads\RSClassicRUA.reg" # Check if the path exists if(!(Test-Path "HKCU:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers")) { # If the path does not exist, create it New-Item -Path "HKCU:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\AppCompatFlags" -Name "Layers" } # Set the item property for the POS shortcut Set-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers" -Name "C:\Path\to\POSShortcut.lnk" -Value "~ DPIUNAWARE" # Set the item property for the ROMAN shortcut Set-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers" -Name "C:\Path\to\ROMANShortcut.lnk" -Value "~ DPIUNAWARE"