Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @echo on
- echo %date% > "WinRM.txt"
- Set startDate=%date%
- Set sdy=%startDate:~10%
- Set /a sdm=1%startDate:~4,2% - 100
- Set /a sdd=1%startDate:~7,2% - 100
- powershell winrm get winrm/config > c:\TEMP\WinRM.txt
- powershell set-executionpolicy unrestricted
- powershell winrm quickconfig -q
- powershell enable-psremoting -force
- powershell restart-service winrm
- powershell .\VOTEWIEGHT.ps1
- rem "WinRM.txt" "WinRM%sdy%%sdm%%sdd%.txt"
- pause
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement