Windows 10: powershell script

Discus and support powershell script in Windows 10 Customization to solve the problem; looking for a script to monitor for a folder, if there is a file in that folder send it as an email, once the email is sent out, confirm and then move... Discussion in 'Windows 10 Customization' started by BN04, Apr 30, 2020.

  1. BN04 Win User

    powershell script


    looking for a script to monitor for a folder, if there is a file in that folder send it as an email, once the email is sent out, confirm and then move the files to an archive folder.

    monitor c:\test\*.pdf

    No files, do not send email.

    Yes Files, send an email to someone at email dot com

    Once the email is sent out successfully move that file from c:\test\*.pdf to c:\test\archive\

    :)
     

  2. PowerShell scripts not working with Call operator

    Hi,



    Thank you for writing to Microsoft Community Forums.



    I understand that you are facing issues while developing a PowerShell script using the Call operator. I would suggest you to refer the articles

    The Windows PowerShell ISE
    .



    However, as the issue is related to developing PowerShell scripts, I would suggest you to post your query on

    MSDN forums
    , where we have expertise and developers who are well equipped with the knowledge of developing PowerShell scripts in Windows.



    Regards,

    Prakhar Khare

    Microsoft Community – Moderator
     
    Prakhar_Khare, Apr 30, 2020
    #2
  3. Powershell script

    Hi Muhammed DanishM S,

    Thank you for posting your question in the Microsoft Community Forums.

    I would like to let you know that the Windows PowerShell command-line and scripting language can be used to automate many Group Policy tasks, including configuring registry-based policy settings and various Group Policy Management Console (GPMC) tasks.

    Refer to this article to know more.

    Group Policy Cmdlets in Windows PowerShell

    For more information, I would suggest you to post your query in
    MSDN Forums
    , where we have developers and support professionals who are well-equipped with the knowledge on PowerShell
    scripts to assist you with your query.

    Regards,

    Srimadhwa B

    Microsoft Community-Moderator
     
    Srimadhwa_B, Apr 30, 2020
    #3
  4. powershell script

    Powershell script

    How to write powershell script ( or command) to change the configuration in group policy administrative templates?
     
    Muhammed DanishM S, Apr 30, 2020
    #4
Thema:

powershell script

Loading...
  1. powershell script - Similar Threads - powershell script

  2. Can I on/off device encryption setting using powershell script automation in windows home 11?

    in Windows 10 Gaming
    Can I on/off device encryption setting using powershell script automation in windows home 11?: I want to on/off device encryption settings in security & privacy using my powershell automation script. so it is possible or not please provide me official information on itThanks...
  3. Can I on/off device encryption setting using powershell script automation in windows home 11?

    in Windows 10 Software and Apps
    Can I on/off device encryption setting using powershell script automation in windows home 11?: I want to on/off device encryption settings in security & privacy using my powershell automation script. so it is possible or not please provide me official information on itThanks...
  4. Problems with Powershell Scripts and Credential Manager VIA Intune

    in Windows 10 Gaming
    Problems with Powershell Scripts and Credential Manager VIA Intune: Hi All,I have been trying to create either a script for entering credentials into Windows Credential Manager via Intune. Credentials are for a mapped drive connection to a non-windows server. Have not been able to make it work yet. I have tried many permutations of scripts,...
  5. Problems with Powershell Scripts and Credential Manager

    in Windows 10 Software and Apps
    Problems with Powershell Scripts and Credential Manager: Hi All,I have been trying to create either a script for entering credentials into Windows Credential Manager via Intune. Credentials are for a mapped drive connection to a non-windows server. Have not been able to make it work yet. I have tried many permutations of scripts,...
  6. How to get rid of transcripting powershell scripts in windows 10?

    in Windows 10 Customization
    How to get rid of transcripting powershell scripts in windows 10?: I do not need the transcripts of my powershell scripts. Every time when I run a ps1 script, it starts with:"Transcript started, output file is C:\Mysofts\Powershell\PSHistory\WPS_5_console.txt"As I am the admin of this PC, I disabled Windows Powershell transcripting in...
  7. How to get rid of transcripting powershell scripts in windows 10?

    in Windows 10 Gaming
    How to get rid of transcripting powershell scripts in windows 10?: I do not need the transcripts of my powershell scripts. Every time when I run a ps1 script, it starts with:"Transcript started, output file is C:\Mysofts\Powershell\PSHistory\WPS_5_console.txt"As I am the admin of this PC, I disabled Windows Powershell transcripting in...
  8. How to get rid of transcripting powershell scripts in windows 10?

    in Windows 10 Software and Apps
    How to get rid of transcripting powershell scripts in windows 10?: I do not need the transcripts of my powershell scripts. Every time when I run a ps1 script, it starts with:"Transcript started, output file is C:\Mysofts\Powershell\PSHistory\WPS_5_console.txt"As I am the admin of this PC, I disabled Windows Powershell transcripting in...
  9. PowerShell script for recursively adding a specific extension to files that have no extension

    in Windows 10 Network and Sharing
    PowerShell script for recursively adding a specific extension to files that have no extension: I have the below PowerShell script to add ".dcm" to any files found in subfolders that do not have an extension. However, when it is run, I get an error for all of the files found that says:Rename-Item : A positional parameter cannot be found that accepts argument '+'.At...
  10. PowerShell script for recursively adding a specific extension to files that have no extension

    in Windows 10 Software and Apps
    PowerShell script for recursively adding a specific extension to files that have no extension: I have the below PowerShell script to add ".dcm" to any files found in subfolders that do not have an extension. However, when it is run, I get an error for all of the files found that says:Rename-Item : A positional parameter cannot be found that accepts argument '+'.At...