Update 'upd.ps1'
This commit is contained in:
5
upd.ps1
5
upd.ps1
@@ -1,6 +1,7 @@
|
|||||||
#Hiding PS console
|
#Hiding PS console
|
||||||
Add-Type -Name win -MemberDefinition '[DllImport("user32.dll")] public static extern bool ShowWindow(int handle, int state);' -Namespace native
|
#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)
|
#[native.win]::ShowWindow(([System.Diagnostics.Process]::GetCurrentProcess() | Get-Process).MainWindowHandle,0)
|
||||||
|
|
||||||
Start-Sleep -s 5
|
Start-Sleep -s 5
|
||||||
Start-Process microsoft-edge:https://geekprank.com/win10-update/
|
Start-Process microsoft-edge:https://geekprank.com/win10-update/
|
||||||
|
Start-Sleep -s 60
|
||||||
|
|||||||
Reference in New Issue
Block a user