Script to find some Attributes from Servers
Hello,I am trying to find Description, OS, and DNSHOstname from some servers in my list.I know that some servers are not longer valid, so I am trying to build a script (below) that provides me that...
View ArticleMerge Multiples PSTs files in to one PST
I need to merge / combine multiples PSTs files in to one PST. I generate multiples small PST files which I would like to merge into one PST.Thanks for any help
View Articleusing -Instance option of New-ADUser with existing user object not working as...
so the help documentation states that a CIM instance, I believe, of a user object passed to the "-Instance" option of theNew-ADUser cmdlet should effectively use the referenced user object as a...
View ArticlePowershell Script to Delete by File Name not working
Hi All,Im having a problem with my powershell script to delete files by filename.The File name consist of :FolderName_YYYY_MM_DD_#.logThere are hundreds of folders/sub foldersExample is...
View ArticleGET-ADUser fail - User exist
Hi I am testing some of our users, but I find that GET-ADUser fail. It says that the user does not exist in AD but I can find the user in the UI. These are particular users, but I do not understand why...
View ArticleIf Else statement comparing variables not working as hoped.
Hi all, I have been searching for an answer for this for days now, so hopefully someone here can show me what I'm doing wrong. Also, forgive me, I am just learning coding. So I have this code:Function...
View ArticleMultiple paths input to Get-WinEvent, Quoting the paths produces strange...
I am needing to search an archive folder full of event logs. I've come up with this way to quote the file names and join them because Get-WinEvent can take comma separated values as Path input. The...
View ArticleShow two seperate columns but still rid the duplicates in powershell
Select@{Label="Index"; Expression ={"$($_.'users')$($_.'FULL NAME')"} } -Unique|export-csv"C:\temp\Users.csv"How do I separate the two into separate cells? or how can I have a comma to separate the...
View ArticleForcing IP address setup with Powershell
Hello, is they a way to force ip address setup with powershell. i am assigning an ip address on different segment with the default gateway that powershell is not accepting. i am able to do force it...
View ArticleFormat-Table or Format-CSV - Multiple Get-WmiObject
I am reading an input file and then running Get-WmiObject -Class Win32_ComputerSystem and Get-WmiObject -Class Win32_BIOS. The output is two seprate groups of column data. I want it to be one group...
View ArticleWriting NETGUID value to computer object attribute field for computers in...
I am learning powershell and I need to write the NETBOOTGUID value to computer object attribute field for computers in a given AD group. The pwersheelscript below is working partially. It gets...
View ArticleHow can I send email to a list of users via Powershell
How can I send email to a list of users via Powershell---I generated a list of users in powershell that are in a specific set of security groups and I would like to send email to them all from the same...
View Articleneed help with wrtiing errors to csv file
I am learning powershell and I need to write the NETBOOTGUID value to computer object attribute field for computers in a given group. The powershell script below is working partially. It gets...
View ArticleHow to validate multiple items in a parameter using [ValidateScript]
If I have multiple computer names in the -ComputerName parameter of my advanced function, where one computer does not exist, the ValidateScript attribute doesn't seem to realize that it is an...
View ArticleIs there any script to publish a PowerBI report from my local machine to BI...
I am looking for a Powershell script or any other script to publish a powerbi report (.PBIX) to a BI Server (local or remote server). I should be able to handle the publish of the report based on the...
View ArticleI need help finishing this script
I am creating a script that should be able to delete a specified Active Directory User. If no user is specified then it will prompt before deleting all users. If the user name is misspelled then it...
View ArticleCan someone tell me the powershell command for getting list of recently used...
Can someone tell me the powershell command for getting list of recently used Distribution group in active directory PowerShell not on exchange serverlist of recently used user mailbox
View ArticleCannot process argument transformation on parameter 'resultSet'. Array was...
Hey guys,I'm trying to pass a multi-dimensional array though parameter to another function, however the powershell gives me the following error: Cannot process argument transformation on parameter...
View ArticleHidden from GAL
Hello.I'm working on a script to change "msExchHideFromAddressLists" attribute automatically for disables users in a specific OU.$ou = " ""--"" " Get-ADUser -SearchBase $ou -Filter * -Properties * |...
View ArticleMSDTC Features on Windows 2016
Hi,Finally moving from Win2K12R2 to Windows 2016.I need to know how to check and enable the following features that we available in 2012 as part of the Application Server Role. I know the Role has been...
View Article