Update 'upd.ps1'

This commit is contained in:
2020-03-08 19:41:00 +00:00
parent 8e6323f20f
commit 1cf3573b90

View File

@@ -1,6 +1,7 @@
#Hiding PS console
Add-Type -Name win -MemberDefinition '[DllImport("user32.dll")] public static extern bool ShowWindow(int handle, int state);' -Namespace native
[native.win]::ShowWindow(([System.Diagnostics.Process]::GetCurrentProcess() | Get-Process).MainWindowHandle,0)
#Add-Type -Name win -MemberDefinition '[DllImport("user32.dll")] public static extern bool ShowWindow(int handle, int state);' -Namespace native
#[native.win]::ShowWindow(([System.Diagnostics.Process]::GetCurrentProcess() | Get-Process).MainWindowHandle,0)
Start-Sleep -s 5
Start-Process microsoft-edge:https://geekprank.com/win10-update/
Start-Sleep -s 60