Skip to main content

Questions tagged [powershell-4.0]

The tag has no usage guidance.

4 votes
1 answer
395 views

Don't want to display WARNING: ACTIONS REQUIRED: while running powershell script

I have written bitlocker code to backup key after old key has been shared with user. My requirement is that don't want to display WARNING: ACTIONS REQUIRED: while running script $BLV = Get-...
Suraj Kumar's user avatar
1 vote
1 answer
436 views

validate particular column and its value using powershell

Validate Status Column using powershell. If any status column contain Not-compliant then overall status column needs to be displayed not-compliant. Attached data for your reference. Trying below code ...
Suraj Kumar's user avatar
0 votes
1 answer
407 views

Export data to excel by creating instance of the Excel.Application object in PowerShell

Currently i'm using ImportExcel module to fetch data from multiple csv file and export in single excel file. But due to network restriction from this month I am not able to install importexcel module. ...
Suraj Kumar's user avatar
1 vote
1 answer
772 views

Copy files and only the parent folder the file resides

Copying files but not all the folders, just the one parent/relative folder in which contains the files. Folder and Files structure: ExcelData (Folder) a. File1.xlsx b. File2.xlsx c. File3.xlsx d. ...
Suraj Kumar's user avatar
2 votes
1 answer
2k views

Powershell script to capture Screenshot

Don't want to use third party tool and module. $ie = New-Object -ComObject InternetExplorer.Application $ie.Visible = $true $ie.Navigate("https://www.google.com") $ie.FullScreen = $true ...
Suraj Kumar's user avatar
0 votes
1 answer
116 views

Exception calling "CopyFolder" with "4" argument(s): "The 'destUrl' argument is invalid."

I'm trying to copy local drive folder to targeted folder in online one drive but getting above error. Below is the code tried: - #Load SharePoint CSOM Assemblies Add-Type -Path "C:\Program Files\...
Suraj Kumar's user avatar
0 votes
1 answer
204 views

Run-SCCMClientAction : Connecting to remote server DD4 failed with the following error message

I am running below script on my system to perform all sccm client actions trigger and getting below error. Run-SCCMClientAction : Connecting to remote server DD4 failed with the following error ...
Suraj's user avatar
  • 25
1 vote
1 answer
928 views

Export-CSV column/row value as filename

I've got a bunch of csv files that each look like this: DD-L-1_test.jaun.Csv Parameter, Version, Status OS, 21H2, Compliant Chrome, 107.1.1, Compliant DD-L-2_test.smith.Csv Parameter, Version, Status ...
Suraj's user avatar
  • 25
0 votes
1 answer
617 views

Form with Input Window, where a mechanism shall check if data has been entered

I need it to not close when user press enter or exit so that it mandate for user to make entry for all three box. I am new to powershell so I might be sounding akward but I can't find a good solution ...
Sagar Mahto's user avatar
2 votes
2 answers
14k views

PowerShell select-object Expand Property For multiple values

How can I Filter Files Name and Complete Files Path Using powershell select-object expand property here is files in partition Mode LastWriteTime Length Name ---- -----...
Sadam's user avatar
  • 144
2 votes
1 answer
8k views

How to merge multiple excel files and update the merged file's worksheet names as excel files?

Can somebody please help me to resolve this. This is my requirement: I have few excel files (It will vary) in a folder D:\Script\Test The name of the files are ExcelA, ExcelB, ExcelC etc It has ...
Vimal VV's user avatar
0 votes
0 answers
102 views

'Foreach Recipient in Recipients' not work correctly in Powershell

The recipients of a mail in Outlook 2010 are as follow. I tried to use foreach to delete all of the existing recipients but it failed to delete all(but deleted some). Also the dummy Write-Host (the ...
Richard Chung's user avatar
-1 votes
1 answer
66 views

How to add SAMAccount to results?

Stuck on how to add SAMAccounts (AD usernames) to the results, can anyone help? Get-Mailbox -ResultSize Unlimited | Get-MailboxPermission | where {$_.user.tostring() -ne "NT AUTHORITY\SELF" -and $_....
Top's user avatar
  • 11
0 votes
1 answer
2k views

My commands in runonce are not running

I'm writing a script that is intended to automate the process of promoting a new domain controller where no domain previously existed. I've been consistently caught up on how to get the program to ...
comp.sci.intern's user avatar
3 votes
3 answers
4k views

PowerShell issue - IF statement curly brackets

I’ve come across something with PS and I don���t know if I’m doing something wrong or maybe it is just a bug in PS (and I can’t find the answer anywhere)? I’ve tested this with PS v4, v5.0 and v5.1 ...
SOSidb's user avatar
  • 533

15 30 50 per page