How to show user name instead of user's mail in a mail send via Powershell
When I send a automatic mail from PowerShell it shows my email address to receiver. But when I send the mail from outlook it shows user's name to receiver.There is any way we can also do the same when...
View ArticleScript to completely uninstalled custom Metro app from windows 10 devices
Hello,I have installed a custom universal app using DISM.EXE/ONLINE/ADD-PROVISIONEDAppxPackage command and it get installed on devices for all user but now I need to uninstalled this app completely...
View ArticleSpeed Up Script
I am using the below script to move files from temp directory1 to production directory, scanning the production directory for any *mkv files, convert the found *mkv files to *mp4, then delete the *mkv...
View ArticleEdit XML with powershell
Hi all, Please help how can I update my .xml document?I need to change all parameters whith "key"=ItemId for each command. from: <Parameter Key="ItemId">001</Parameter>to: <Parameter...
View ArticleTreeView issue
Hi,I use WindowsForms to create one shell application. I use TreeView object to list some information. So far so good. I am adding nodes to the TreeView object with separator "/". $TreeView =...
View ArticleFetch email address from display names of Distribution Groups :
Is there a way to get email-address\ Primary-SMTP address of DLs from a List of Distribution List Display-names as input ? Specifically I need the output to be in following format? Kindly suggest...
View Articleneed script for changing .webconfig value
Hi, I need to edit webconfig value by using script which is for IIS code move activity.This posting is provided &quot;AS IS&quot; with no warranties and confers no rights! Always test...
View ArticleRemotely restarted service
Hi I want to Restarte remotely specific service that is restarted ,started and stop with credential .But How, Pleas Help Me.EXAMPLE :-Sql service name MSSQLSERVER with credential...
View ArticleMove files with *1234*.txt in the filename and rename the newest file to...
Hi experts, I have a funny scenario, I have folder with multiple files. I want to move all the files that has 1234 in the filename to a new folder and rename the newest file to 1234.txt Example: I...
View Articleerror opening password file .ini (Code 2)
Hi All,I am have a PS which runs an exe using Start-Process cmd shell, the exe inturn opens password file which has an encrypted key in it, finally, the code runs but is exiting with error opening...
View ArticleMembers of group in remote forest
Hi I'd like to make the following code work against a remote forest so need to take credential and DC/DN name.It finds members of group and is much faster than get-distributiongroupmemberAdd-Type...
View Articlechanging SQL account password in specific database
I am trying to change the password for userId in a specific database called LionsDB.$srv = New-Object "Microsoft.SqlServer.Management.Smo.Server" $ServerName$SQLUser = $srv.Logins | ? {$_.Name -eq...
View ArticleGet information from excel, then use unc path to find file sizes, then export...
I hope my question it clear enough, I will try to explain.My company made a csv and xlsx file from sql. Sadly the csv is not a correct csv file to work with so I cannot work with it. I made a script to...
View ArticleSome help about languages and fields in sharepoint with powershell
Good afternoon, I need some help about languages and fields in sharepoint with powershell. I got a sharepoint site and a powershell having to set the 'Display name' of columns in lists foer either...
View ArticleRemote uninstall of a Setup.exe fails
Hello Everyone, i have problems with the uninstall of software using remote Powershell. My script searches the registry for installed software i want to uninstall. The received uninstallStrings are...
View ArticleActive Directory Administrative Center installed in Windows 7 Professional...
I have installed RSAT and enabled Active Directory Administrative Center in Windows 7 Professional. However I am unable to view Windows Powershell History when I launch Active Directory Administrative...
View ArticleChange Color in HTML Output
Hello Folks,i use the following script to collect some disk information of all my servers in the directory.I want to change the Color off a cell if the Freespace % value is greater than 90%.How can i...
View Articlecannot find the type for custom attribute 'cmdletbinding'
Getting the above error when I run a powershell script. Contains the below first line. Am I missing anything here ?[CmdletBinding (PositionalBinding=$true)]
View ArticleDL group members update skip not found users in directory
Hi, Below script using for DL - distribution list group updates. Script updates are quite good, however if any user not found in directory, script will skip entire DL to update further its members...
View Article