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

Get-ActiveSyncDevice -Filter

HiIm trying to get the users of a list of activesync device ID's. They are stored in a variable named $list. If i try do this, i get no result:½foreach ($d in $list) { Get-ActiveSyncDevice -Filter...

View Article


How to export Registry values for Office 2010 in HKLM.

Hello,I am trying to export all the Registry keys for Office 2010 in HKLM. All the Office 2010 based registry values in HKLM will be exported and need to be resotred after installing Office 365. So I...

View Article


Form Returns Null Values or Empty Values For Variables After Clicking OK Button

I'm trying to create a new user based on a template user. Right now I just want to get the variables right, I just want to be able to select a template user, fill in the information that will be...

View Article

Powershell script to reset TPMLockout

We have Windows 7 Enterprise laptops with TPM chips. We have deployed Bitlocker to these laptops. What I'm trying to accomplish is to write a PowerShell script to look up the msTPM-OwnerInformation...

View Article

merge text file with condition

I have two text files (report1.txt and report2.txt) that I want to merge with conditions: - Matching rows that have same "ID" and same "TranVal", will keep only one instance - Mismatching rows that...

View Article


How to Customize powershell command to desired output

Hello,By below command I got below output.  Please let me know how can I get User1102 get printed multiple times in each row along with Folder Name , FolderPath, ItemsInFolder, FolderSize$bg =...

View Article

convert vhd

Hi,can i convert a dynamic vhd to fixed vhd or vhdx but only insert to the fixed vhd the actual size of the used space that is in the dynamic vhd?THX

View Article

Filtering out a registry key based on a value

Hi All, Is there a way to filter out a registry key based on a value contained under it, then pipe it into a new command? I'm trying to change a value for all users on the network but unfortunately the...

View Article


How to run a scriptblock with elevated priveleges within a script

I'm sure this is a fairly common used scenario.  I apologize if I'm asking a question that's been answered before, but all of my internet searching has turned up how to run an elevated Powershell...

View Article


Script copy: Long path names, add to archive

Hi,We have a department of users being relocated to Germany.  I was a bit of a div and promised my counterpart in the German office that I would schedule an overnight copy of all the relocating...

View Article

Filter Objects returned by Get-ChildItem

Hello there,I had a look at the properties available for objects returned by Get-ChildItem command using:PS C:\> Get-ChildItem | Get-MemberThis command shows that objects returned by Get-ChildItem...

View Article

How to export list of Active Directory group with specific fields to csv so...

I need to export values for a specific field (Managed by) for all the security groups in our Active Directory (2003) to csv.We have an Exchange 2010 server so I assume we can use PowerShell for...

View Article

Invoke-WSManAction command and CIM Object references

Hi,I am using powershell on my Windows Server 2008 R2 system to invoke a CIM class method that takes a reference object argument. The signature of the method is something like:uint32 DoSomething([IN,...

View Article


Script to list Hyper-v CSV disks and their LUNs

Hi allI am getting to grips with powershell now but one thing i am struggling to do is create a script that will query CSV's volumes and show their SAN volume LUNs.Have searched frantically and pieced...

View Article

Total Users Logins issue

Hello All,I have a script to get all users logins which is working well from me except when i need to get another attribute other than the logonCount attribute.below is the script and i am trying to...

View Article


Can I remotely failover clusters with powershell from a non clustered server?...

Hello,I'm trying to remotely administer my windows clusters and fail them over with a PowerShell Script.  The server I'm using is not a clustered server.  I've already installed the Failover Clustering...

View Article

get process CPU usage

hi,how can i get all process CPU usage like task manager show?some of my monitor server have few CPU cores to lots of CPU coresTHX

View Article


List AD Group Members Including Properties

I'm using the following code to get all users on my DC and the four properties there and it works great.#get all users with info by searchbase Get-ADuser -filter * -searchbase 'DC=DC01, DC=local'...

View Article

Get-ADuser to import fields to active directory powershell

HiI need to import some telephone fields to AD from csv file via PowerShell script, so first I export the specific fields to csv with this script:Get-ADUser -Filter * -Properties * | Select-Object -...

View Article

Comparing Folders, Sub Folders, Files by binary and copying the difference to...

Hi All, I have seen examples of using a Compare-Object  in powershell but it gets complicated for what i want to do, i have a rough idea how to use this; firstly i want to be able to compare NEW FOLDER...

View Article
Browsing all 21975 articles
Browse latest View live


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