Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #Find current working directory and add directory to variable
- $add = $pwd.Path+"\Scripts\AddManual.ps1"
- $add #results in C:\PShell 2\Scripts\AddManual.ps1
- $add = $add.Replace(" ","` ")
- $add #results in C:\PShell 2\Scripts\AddManual.ps1 removing my `
- start powershell -credential "" $add #This will fail to start because of spaces
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement