Quantcast
Channel: Windows PowerShell forum
Browsing all 21975 articles
Browse latest View live

Image may be NSFW.
Clik here to view.

Get-BitlockerVolume : Invalid Syntax

My machine is fully encrypted with bitlocker. When i run the Powershell command Get-BitlockerVolume it says Invalid Property.  Sameway when i check using Manage-bde command everything working fine....

View Article


[Announcement] “Windows PowerShell” Forum will be migrating to a new home on...

This “Windows PowerShell” Forum will be migrating to a new home on Microsoft Q&A! We’ve listened to your feedback on how we can enhance the forum experience. Microsoft Q&A allows us to add new...

View Article


Image may be NSFW.
Clik here to view.

Get-BitlockerVolume : Invalid Property

Machine is fully encrypted with bitlocker. When i run the Powershell command Get-BitlockerVolume it says Invalid Property.  Sameway when i check using Manage-bde command everything working fine....

View Article

Get-ADUser -SearchBase 'variable' - filter won't work

Hi folks, thanks in advance. I can't get Get-ADUser -SearchBase to work with a variable even though the variable contains the exact same Path...

View Article

PowerShell - Determining if a GPO is linked

Can anybody advise how I can make use of PowerShell to determine if a particular GPO is linked? I have a script that runs through all the GPOs in the domain via the Get-GPOReport cmdlet but I only want...

View Article


Retrieve credentials auto when PowerShell command prompt starts

Import-Module -Name CredentialMangerI have call above cmdlet in psd1 to call before module load and it works same time manually stored the credentials in widows credential manger=>generic credential...

View Article

Get-Netroute and 'route print' giving different route metric

I was reading Get-Netroute is the powershell equivalent of 'route print'. However, the output of both the commands gives me different values for route metric. The below is from a test computer. Yes, I...

View Article

How to release / unlock file from process

Hi there,I create a bundle *.mpb and import this bundle to Service Manager via Import-SCSMManagementPack myFile.mpbIf I want to create a new bundle I got the following error-msg: PS>...

View Article


Image may be NSFW.
Clik here to view.

Good material on Azure Powershell?

Hi,I'm trying to find a way to get a good grasp on Azure Powershell. Has anybody any idea how to do it?Any videos/books etc? By gpod grasp I mean to do the same stuff in powershell as in Azure...

View Article


powershell output copied to other command in script

im trying to make a  script that detects max free space  on drive  in bytes then copies the bytes number to  other command spot before running  2nd command need  the output bytes to  be copied to...

View Article

Powershell script creating a Windows form that I need to lock focus

Hi,I'm generating a Windows for in Powershell with the following code: #Load Assemblies [System.Reflection.Assembly]::LoadWithPartialName("System.Windows.Forms") | Out-Null...

View Article

Azure AD Powershell help

Hi,I need to add Description and add azure group owner of 150 Azure Ad group with every group has a different description and different owner , I created a CSV with userprinciplename and groupname .....

View Article

How can I edit firewall rules inside Local Group Policy GPO using powershell?

Hi In the past I used netsh, for example:netsh advfirewall set store gpo=vme-pc advfirewall firewall add rule dir=out name="Ping" profile=any enable=Yes action=Allow protocol=ICMPv4Where vme-pc is my...

View Article


How to display two Objects values in single command

Hi,I am extracting list of azure service principals with Start and End date details in a single file. I am executing below script but I could not able to select three values in single command and...

View Article

powershell script to monitor for a process in the background then end it

Looking for a PowerShell script to monitor in the background for a certain process,Snario :- installation of an application deployment via SCCMa licence process runs at the very end of the installation...

View Article


Powershell Runspace

I have a question on the runspace, I am also trying to implement this, but using a foreach loop and with a runspace, can this be done? I have a foreach loop for each database, then i am doing step 3 in...

View Article

Powershell and configuration files - Read data from configuration file to...

Hi.I am trying to use Powershell to restore backup to a remote SQL Server. I have a config.xml file, which has format as below<?xml...

View Article


retriving bookings from a room booking accoung in O365 Office 365

I have a script below that gets _CALENDAR_ events for a user , I am trying to adapt it for a O365 room account to list all the room bookings can I do that wit poweshell $UserCredential = Get-Credential...

View Article

Powershell runspace user function create with Createspacepool min and max issue

Hello,I created a Powershell script that is utilizing a function i created, also i want to set the CreateRunSpacePool 1 and 5, however it feels like i have to either create or have the runspace know...

View Article

Compare two variables with multiple objects

I am trying to do the following, not sure something is missing or a syntax error, i am not able to figure out. if someone can assist would be great help. Here is what i would like to achieve, fetch...

View Article
Browsing all 21975 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>