PowerShell
Running a command as Administrator using PowerShell?
You know how if you\'re the administrative user of a system and you can just right click say, a batch script and run it as Administrator without entering the administrator password?[详细]
2023-04-11 06:47 分类:问答How do I create an object based on the output of a Function in Power Shell?
I wanted to: 1. In Windows, Determine the system\'s default browser 2. Pass the browser to a new-object definition[详细]
2023-04-11 06:10 分类:问答Powershell - Invoke-SqlCmd, retrieving PRINT statements asynchronously
I would like to know if it开发者_运维百科s possibly to retrieve PRINT statements from a stored procedure asynchronously?[详细]
2023-04-11 05:10 分类:问答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 分类:问答How to authenticate an user in ActiveDirectory with powershell
I would like to authenticate an user in my ActiveDirectory with the Username and the Password. Is there any chance to do that with开发者_运维百科 powershell and the activeDirectory module.[详细]
2023-04-11 03:24 分类:问答How do I pass an array parameter to powershell -file?
I have the following powershell script: param( [Int32[]] $SomeInts = $null, [String]$User = \"SomeUser\",[详细]
2023-04-11 02:08 分类:问答Script to restart a process exceeding RAM
I want to write a script which can run as a Windows service. It would restart a process active in the process tabl开发者_如何学JAVAe when the user is using the process and it exceeds for example 500mb[详细]
2023-04-10 20:05 分类:问答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 Add-Type not behaving as expected
Can anyone explain why the following (using the System namespace qualifer) works: Add-Type @\" public class BitValueChecker[详细]
2023-04-10 17:19 分类:问答How to invoke powershell Set-Location command silently?
I would like to cd to some directory without the path to that directory being displayed by powershell. No matter what I try - nothing works:[详细]
2023-04-10 16:30 分类:问答