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 ArticleGet-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 ArticleRun 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 ArticleQuery 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 ArticleAlternative 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 Articlewin32_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 ArticleName 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 ArticleInvoke-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 ArticleDFS 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 ArticleRemotely 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 Articlea 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 Articledetermine 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 ArticleReg:: 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 ArticleHow 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 ArticleSynchronize 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 ArticleAppend 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 ArticleDisable 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 ArticleCopy-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 ArticleRemoving 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 ArticleApril 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