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

Compare multidimensional arrays

I've got a problem with multidimensional arrays. I need to compare two multidimensional arrays as follows:$array1 number      word$array2 number      wordIf "number" from $array1 matches any "number"...

View Article


Get-ADUser splatting error

Hello,i'm trying to use splatting for a GET-ADUser but from some reason it doesn't work$GetADUserParameters = { Identity = "username" Properties = "employeeid, manager, notes" } Get-ADUser...

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

Query in Active Directory with, as variable, a attribute prompted the user

Hi to all,please... where isthe error?1° line of my script: $args = Read-Host -Prompt "Insert "2° line of my script: Get-ADUser -Filter 'EmailAddress -like "$args"' -Properties * | fl SamAccountName,...

View Article

Alternative to GetFcpTargetMapping Method

On windows 2008, with latest Emulex driver version 10.2.370.18 the GetFcpTargetMapping method fails with the below error.Exception calling "GetFcpTargetMapping" : "Not supported " $fcpMappingResult =...

View Article


win32_process create fails with Unknown failure for service account user

I have a windows service account user, using which i'm trying to create a background process using the WMI win32_proces. But fails with Unknown Failure. (Tried this with administrator, nonadmin, domain...

View Article

Name computers by using serial numbers

I am a beginner in Power shell and I am trying to automatically name the computer from a .cvs file.What I have is a column that says serial number & one that says computer name.What I want the end...

View Article

Invoke-SqlCmd - Not Returning Results - Send-Email

I have a SQL query that performs a select of a single record based upon a parameter from a 3rd party application that is passed in.  The query and parameter are both showing up accordingly within the...

View Article


DFS Health Report Powershell automated script error

Hi, I am writing a PS script to generate a health report of all DFS groups and i am running into a error. Import-Module DFSR # Write DFS Health Report for all Replication Groups $groups =...

View Article


Remotely Installing app using powershell

Good day,I have done some research on this and have found many helpful threads on this.  The script runs, but when the install seems to be complete the icon which is created for the app disappears and...

View Article

a PowerShell command that will recursively pull up all the groups that a user...

I found a good powershell command that will specifically list all  security groups a member is part of.For example  John is part of the groupA, GroupB, GroupC.   I  however was trying to add the...

View Article

determine 32 or 64bit OS?

Hello, Need to determine via script if running on a 32 or 64bit version of windows. It needs to work on server 2003, 2008, and 2008R2, so Win32_Operatingsystem's OSArchitecture property will not work...

View Article

Reg:: Office-365 Exchange users backup with email aliases

Hi PowerShell Experts,One of my customer requested the followed task, Could you please help me.Request: Needed Backup of Office-365 users with email aliases.Description: Customer requested us, they...

View Article


How to make "universal" move command

Hello So, I'm writing a small batch-file  that I want to be able to distribute among my friends. But, I want the batch-file to run every time they login. So, to do this I must write a seperate...

View Article

Synchronize files and folders

Is there already some kind of script in place created in Powershell and uses robocopy to synchronize files ?I need to be able to do the following:Make use of separate input files for robocopy...

View Article


Append value to regkey at logon, will this PS script work?

First of, I haven't used PowerShell before. I've coded before though :)I want to append a value to a registry key to stop Outlook from showing a popup (more info: last entry in...

View Article

Disable a specific Action Center message

Is there any working methods, turning Action Center message down instead of  import/export REG key which isnt  reproducible on different computers. I can also stop wscsvc service what I've made, but it...

View Article


Copy-Item Not Working in Powershell Script

I have a Powershell script that contains the lines [masked out actual directory and server name]:Copy-item C:\ProgramData\dir1\dir2\abc_config.xml \\server2\c$\ProgramData\dir1\dir2\abc_config.xml...

View Article

Image may be NSFW.
Clik here to view.

Removing White Spaces

Hello all, i have a pretty simple script to return usernames based off of full names that are being read in by a text file. All is well regarding the script, however the output has some white space...

View Article

Image may be NSFW.
Clik here to view.

April TechNet Guru results were announced! Are you entering for May?

The results for April's TechNet Guru competition were been posted!http://blogs.technet.com/b/wikininjas/archive/2015/05/17/the-microsoft-technet-guru-awards-april-2015.aspx Below is a summary of the...

View Article
Browsing all 21975 articles
Browse latest View live


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