You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You can load PowerShell functions from a local script file into the interactive shell using the `loadps` command. This allows you to use custom PowerShell functions defined in your script.
174
+
You can load PowerShell functions from a local script file into the interactive shell using the `loadps` command. This allows you to use custom PowerShell functions defined in your script. This method is known as "dot sourcing".
175
175
176
176
This can be helpful when using tools like `PowerView` or `PowerUp` that provide a set of PowerShell functions for post-exploitation tasks.
177
177
@@ -187,6 +187,14 @@ The help command can be used to get more information about the available command
187
187
evil-winrm-py PS C:\Users\Administrator\Documents> Get-Help <LoadedFunctionName># or help <LoadedFunctionName>
188
188
```
189
189
190
+
### Running Local PowerShell Scripts
191
+
192
+
You can run a local PowerShell script on the remote host using the `runps` command. This will read the contents of the specified PowerShell script file and execute it on the remote machine.
0 commit comments