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

How to grant permission to private key from powershell

I'm trying to find a way to grant permissions for private key from powershell script. Certificate is stored in CNG. All ideas are welcome.

View Article


Unable to change password in AD

Hello,I am trying to change the password for an existing user in AD through the script below. However, I am getting an error "Server Unwilling to process request".The script is running on a Windows...

View Article


Find a computer in AD using Get-ADComputer -Filter

I use the following to find a computer in AD and works fine.Get-ADComputer -Filter "name -eq 'pcname'"But I need to use $pc = "pcname" first before searching it like below but it does not work. How to...

View Article

Get-Distributuiongroup

I need a help. I m trying the following commands..$GrpNameEditor = Get-PublicFolder -Identity "\" -Recurse | Get-PublicFolderClientPermission | where{$_.Accessrights -eq "Editor" -and $_.User -like...

View Article

Rename files in batch

Good afternoonI currently have batches of files which have been scanned into our systems and are held in a central location, they already have the filename with the current date prefixed, however i was...

View Article


Function to evaluate $args

I am attempting to write a function I can call at the start of several scripts so I can tell if an argument was passed, and control program flow. A script will either be called with no argument, or...

View Article

Adding groups to local admin

How do we add groups to the local admin (Computer Management )using powershell and what access that group has?

View Article

Help for New-Mailcontact and Set-Contact

Hi,Objective for the script: I have been trying to write a script so I can create New-Mailcontact using CSV file, if not already exist in ActiveDirectory.If already exist in Active Directory then skip...

View Article


get timings for ssas full cube process keep a log

  Are there any scripts where you can get start end time of a cube rebuild. I know you can get the LOG of the process, but would be nice to see start stop for each dim and Measure group. Like...

View Article


Archive AD machines?

Does anyone have a working PS that will find machines in AD that have not been active for 'x' amount of days and then move those machines to a different OU?mqh7

View Article

access DateImported

There is a value just for picture files, DateImported. Since a lot of programs don't give access to it for sorting and such I would like to write a script that would assign the DateImported to the...

View Article

Run Powershell script as Scheduled task, that uses Excel COM object

What am I missing here.. I have  Powershell script that uses the Quest AD cmdlets to get computer information from AD and populate an Excel spreadsheet with the data.The script works fine, so I created...

View Article

N00b question: force script to continue after terminating error

So, I'm a total n00b with powershell and as anyone starting out with something unfamiliar, currently my "love" for PS can only be expressed in expletives.Anyway, having spent past 9 hours beating my...

View Article


Update status: pending

Some times, the window that shows the downloaded updates, shows some with pending status. The Get-EventLog -LogName system is not showing me which have status pending. How to determine which are pending?

View Article

Getting variables from a file

Hi, some time ago i made a pretty well working batch script to backup some data i had. But then i figured it would be cool if it was possible to add a "Backup Diagnostic" txt, that would be added to...

View Article


Microsoft Outlook 2010 Calender Permissions

Hi,Iam using Office 365 email and outlook client on my computer, I have been trying to setup a calendar were a colleague can also access it and add events and delete if required. I've tried setting up...

View Article

Compairing patches by name to what is on another computer

Basically I am trying to set up an array of file names that are patches for a program and when I run my script. It will check to see if that computer has those patches by looking for a folder (by a...

View Article


PowerShell v1.0 to send an email

Hi, I am trying to send an email with PowerShell v1.0.  I am running a command script in PowerShell and I have it outputting to a txt file.  I have this setup on a schedule task to run once a month on...

View Article

System Administrator / Windows Server / Windows Powershell

Using Windows PowerShell (Window Server) is one of tasks that belongs to System Administrators exclusively, is that correct? Does a database programmer has anything to do with it?MVPs, Can you please...

View Article

Powershell run a command\filename based on dnshostname

I am trying to run test-connection and ping computers in AD  I am able to do this but I would like to run wolcmd if I can't ping the computer.  I would create a script with the wolcmd  mac ip etc based...

View Article
Browsing all 21975 articles
Browse latest View live


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