powershell-2.0
referencing powershell files in main file
I have a powershell file with some utility functions. Is it possible to reference this utility file in another powershell file and use the utility cla开发者_开发知识库sses from it? If so, how can thi[详细]
2023-04-11 04:47 分类:问答PowerShell: how to get if else construct right?
I\'m trying to learn powershell and tri开发者_高级运维ed to construct a if else statement: if ((Get-Process | Select-Object name) -eq \"svchost\") {[详细]
2023-04-10 19:26 分类:问答Powershell - Array Range from user input
What would be the easiest way to get user input for an array range. For ex开发者_Go百科ample: function MyArrayOfMachines {[详细]
2023-04-10 02:18 分类:问答GetType used in PowerShell, difference between variables
What is the difference between variables $a and $b? $a = (Get-Date).DayOfWeek $b = Get-Date | Select-Object DayOfWeek[详细]
2023-04-09 23:18 分类:问答Wonky Start-Process errors after the script has been running a while
I have a PowerShell 2.0 script that works on large file shares from the top down, correcting permissions and such by launching another executable via Start-Process and waiting for the results and exit[详细]
2023-04-09 16:18 分类:问答How to use the "-Property" parameter for PowerShell's "Measure-Object" cmdlet?
Why does $a = GPS AcroRd32 | Measure $a.Count work, when GPS AcroRd32 | Measure -Property Count doesn\'t? The first example returns a value of 2, which is what I want, an integer.[详细]
2023-04-09 10:16 分类:问答How to get a string instead of an array in PowerShell?
I\'m trying to do the f开发者_开发技巧ollowing: $files = Get-ChildItem c:\\temp | Select-Object Name[详细]
2023-04-09 07:47 分类:问答How to automate firefox with powershell?
I am currently doing the automation with power shell and I am stuck in the following problem , I have automated internet explorer with scripting in power shell,[详细]
2023-04-09 07:44 分类:问答append text to a file with powershell
I have the following powershell command that recursively loops through all .sql files in a folder ($ScriptFolder) and appends it to another sql file ($TargetFile).[详细]
2023-04-08 19:04 分类:问答powershell script to remove multiple folders
I would like a script to remove multiple folders from beneath each users douments and settings. Example folders:[详细]
2023-04-08 18:42 分类:问答