filmov
tv
Use script : Running PowerShell Scripts on Windows Server 2008
Показать описание
Use script - Running PowerShell Scripts on Windows Server 2008
1. Prepare
- DC1 : Domain Controller
- DC2 : Domain member
- DC19 : File server; IP 10.0.0.19
+ Click Windows PowerShell :
+ Get-ExecutionPolicy # Display the current execution policy
+ Set-ExecutionPolicy RemoteSigned - Y # Set the execution policy
+ Replace "pause" to "$x = $host.UI.RawUI.ReadKey("NoEcho,IncludeKeyDown")"
1. Prepare
- DC1 : Domain Controller
- DC2 : Domain member
- DC19 : File server; IP 10.0.0.19
+ Click Windows PowerShell :
+ Get-ExecutionPolicy # Display the current execution policy
+ Set-ExecutionPolicy RemoteSigned - Y # Set the execution policy
+ Replace "pause" to "$x = $host.UI.RawUI.ReadKey("NoEcho,IncludeKeyDown")"