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

Bulk add contacts to distribution groups

How would I bulk add contacts to distribution groups?  I am unfamiliar with PowerShell.  If this is the only way, is there a service where I can hire someone to perform this task for us?

View Article


PSFunction - problem with the syntax

Hi folks,I grabbed a Function-Example from: get-help about_Functions. I'm having some problems to understand that simple function. It goes like that:function Get-NewPix { $start = Get-Date -Month 1...

View Article


PowerShell Cmdlet Get-VMHostNumaNode, is not giving proper value for...

The cmdlet Get-VMHostNumaNode in not giving proper value for ProcessorsAvailability on Microsoft Windows Server 2012 R2Sample Output.PS C:\> Get-VMHostNumaNode -ComputerName ftvmmNodeId...

View Article

Pass cmd to Powershell cmd from vbs

I want to pass arguments to power shell cmd form vbs ?eg : I want to run a command "set-executionpolicy remotesigned" but  want to pass this argument form vbs and it show run in power shell cmd.

View Article

How can I set permission for a shared folder?

Hello,I want to share a folder and set permission for the shared folder. I've shared the folder. I used "net use z: \\server\folder" and "$shares=[WMICLASS]"WIN32_Share"...

View Article


How to make powershell script.

How to make script that copy content from notepad to other notepad and reverse the text?

View Article

Powershell script to select drive based on label

I have a script that is supposed to select a usb hard drive based on the label. I'm getting a strange error all of a sudden when it used to work just fine. I suspect maybe some code needs to change...

View Article

Set-ADUser : Cannot find an object with identity:...

Hi, I've based a small amount of Powershell code off the code I've found here: http://halfloaded.com/blog/powershell-using-posh-to-search-across-multiple-domains-in-forest/ The function enumerates the...

View Article


Script Modules and Variable Scope (Preference Variables)

While working with PowerShell and writing various psm1 module files, I've noticed that for whatever reason, Advanced Functions in a Script Module (psm1 file) do not inherit the Preference variables (or...

View Article


Alert user Pending password expiration

I am looking remind users to change their passwords ahead of time. I am manually checking the passwords every day. Group policy is not an option in this case.I need to alert the user by email that...

View Article

How to verify email address is valid or not

Hi Experts,I'm using below mentioned powershell script to check whether email id updated on one of the AD account attribute is valid or not. But the problem is for checking sharedemailbox account email...

View Article

PowerShell and SharePoint - comparing data from an array

I have data ( a date) in a SharePoint list that I am trying to compare to data in an array (multiple dates).  If the array has one item in it, it works, more than one it fails.  The SharePoint list...

View Article

Scheduled Job Problem

I have been struggling recently with configuring a scheduled job to run some functions I have created and placed in a module. The two functions I have created work perfectly when executed at the...

View Article


Weird connetion errors in remote powershell session against exchange online..

Hello Experts - I had this posted here but was asked to post it here. Can someone please help me. Thanks.

View Article

Server2012: Set-ClusterScheduledTask + "Run with highest Priviledges" - ???

Hey there,I'm trying to fix a script we have to trim VSS copies on our Fileserver which is a Serve 2012 Failover Cluster. This has worked in the past, however I think it got messed up when I changed...

View Article


convertto-json issues

Evening All,I was hoping you guys & gals could point me in the right direction for a script I am writing?I use an online accountancy package that I need to automatically created invoices to. I am...

View Article

Get-Process differs from Task Manager in memory usage

Hello everyone,this is not the first post about this topic but I actually haven't found a single post that explains it: If you call get-process, you get some information about the memory usage. But all...

View Article


Comparing two CSV files and returning specific values

Ulitimately I want to compare only one column in each csv file and see if the field matches. I have a master.csv (all the IDs) and a test.csv(certain IDs). Below are my current csv files and the data...

View Article

Local group members + export-csv

Hi I have been trying to modify someone else's script from TechNet to get me the local group members from a machine. Can someone tell me how to change the csv file so it has a sheet for each server and...

View Article

querying network printers

If I open the Windows Printer and devices I see a list of local and share printers. I have a vbs script that retrieves such printers that are display on the interface. if I ran Get-WMIObject...

View Article
Browsing all 21975 articles
Browse latest View live


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