Windows 10: PowerShell task?

Discus and support PowerShell task? in Windows 10 Customization to solve the problem; Yo guys I can't get any further. The user specifies the name of a file to be archived. The program checks whether the file exists. If no, an... Discussion in 'Windows 10 Customization' started by Polki249, Aug 6, 2020.

  1. Polki249 Win User

    PowerShell task?


    Yo guys I can't get any further.

    • The user specifies the name of a file to be archived.
    • The program checks whether the file exists. If no, an error message is displayed and the program is terminated.
    • The user specifies the target directory in which the file is to be archived.
    • The program checks whether the target directory exists. If No, an error message is displayed and the program is terminated.
    • The program checks the archive bit of the file. If it is set, the copy process is triggered and a completion message is issued. If the archive bit is not set, the program issues a message that the file does not need to be archived.
    What I have: (Vlt. completely wrong)

    # Description: Archiving viruses of a specific file

    # Restrict programming mode

    set-psdebug -strict

    set-strictmode -version latest

    #Variable declaration

    [string]$filename = ""

    [string]$Target path = ""

    #Enter

    [string]$Filename = Read-Host "Input of the filename"

    [string]$Target path = Read-Host "Input of the target path

    #Processing (I can't get any further here)

    if{ -eq true

    }

    set-itemproperty $Filename -Name Attributes -Value "Archive

    #Output

    #End

    :)
     
    Polki249, Aug 6, 2020
    #1
  2. Kursah Win User

    PowerShell instead of Commandline in Creators Update

    Interestingly enough my personal laptop just got the update...and still has Command Prompt listed, not PowerShell...

    Edit: Not that it matters...I use both regularly. *Toast :toast:
     
    Kursah, Aug 6, 2020
    #2
  3. Mark Isi Win User
    PowerShell randomly poping-up in tool bar

    Hello,

    Just to verify, do you have any scheduled tasks that uses Powershell? Scheduled tasks makes Powershell window appear periodically on your computer, therefore we suggest that you check the Task Scheduler. Here are the steps:

    • Click on Start.
    • In the search bar, type Task Scheduler and click on

      Task Scheduler
      in the results.
    • Under Active Tasks, check for any tasks that use Powershell and the scheduled time.

    If the issue still persist, we suggest that you run a Windows Defender scan to see if it will pick up any malware that the first scan missed.

    Let us know the outcome.
     
    Mark Isi, Aug 6, 2020
    #3
  4. KeithM Win User

    PowerShell task?

    How to change the WinX menu, including Powershell/Powershell (Admin)

    This part intrigues me. As suggested earler, please post a screenshot of the error message. Also, please clarify/test the follwoing:
    1. Can you start PowerShell from the Start Menu?
    2. If you navigate to %localappdata%\Microsoft\Windows\WinX\Group3, does PowerShell launch from the shortcuts there?
    3. If #1 works & #2 doesn't, compare (& post) the target text from each shortcuts properties. For the Start Menu shortcut, right-click & select Open file location to navigate to the Start Menu folder.

    Keith
     
    KeithM, Aug 6, 2020
    #4
Thema:

PowerShell task?

Loading...
  1. PowerShell task? - Similar Threads - PowerShell task

  2. I can not run a powershell script through Task Scheduler when the useris logged on or not

    in Windows 10 Gaming
    I can not run a powershell script through Task Scheduler when the useris logged on or not: i have a powershell script used to 1 change date format2 convert from xlsx to csvand needs to be automated and run everyday.The user account used SPO... can run the script manually and it works. the moment its on task scheduler it wont work aprt if the setting is set to "run...
  3. I can not run a powershell script through Task Scheduler when the useris logged on or not

    in Windows 10 Software and Apps
    I can not run a powershell script through Task Scheduler when the useris logged on or not: i have a powershell script used to 1 change date format2 convert from xlsx to csvand needs to be automated and run everyday.The user account used SPO... can run the script manually and it works. the moment its on task scheduler it wont work aprt if the setting is set to "run...
  4. Strange powershell usage in task manager, is it malware and how do I get rid of it?!

    in AntiVirus, Firewalls and System Security
    Strange powershell usage in task manager, is it malware and how do I get rid of it?!: Recently I've been downloading a lot of sketchy things on my laptop and i've noticed powershell.exe starting to pop up in task manager a lot. Is it a virus? and ho do I go about cleaning my laptop without wiping the whole disk?...
  5. Strange powershell usage in task manager, is it malware and how do I get rid of it?!

    in Windows 10 Gaming
    Strange powershell usage in task manager, is it malware and how do I get rid of it?!: Recently I've been downloading a lot of sketchy things on my laptop and i've noticed powershell.exe starting to pop up in task manager a lot. Is it a virus? and ho do I go about cleaning my laptop without wiping the whole disk?...
  6. Strange powershell usage in task manager, is it malware and how do I get rid of it?!

    in Windows 10 Software and Apps
    Strange powershell usage in task manager, is it malware and how do I get rid of it?!: Recently I've been downloading a lot of sketchy things on my laptop and i've noticed powershell.exe starting to pop up in task manager a lot. Is it a virus? and ho do I go about cleaning my laptop without wiping the whole disk?...
  7. How do I create a Task under "BUILTIN\Users" through powershell?

    in Windows 10 Gaming
    How do I create a Task under "BUILTIN\Users" through powershell?: Hi, I have a pretty frustrating issue. I want to create a task under the UserId "BULTIN\Users" but I keep getting an error message, I tried multiple variations, even to create the Task under SYSTEM and then change it to "BUILTIN\Users" I got the same error. I need it to be...
  8. How do I create a Task under "BUILTIN\Users" through powershell?

    in Windows 10 Software and Apps
    How do I create a Task under "BUILTIN\Users" through powershell?: Hi, I have a pretty frustrating issue. I want to create a task under the UserId "BULTIN\Users" but I keep getting an error message, I tried multiple variations, even to create the Task under SYSTEM and then change it to "BUILTIN\Users" I got the same error. I need it to be...
  9. WHY IS POWERSHELL SHOWING UP IN MY TASK MANAGER AT STARTUP?

    in Windows 10 Gaming
    WHY IS POWERSHELL SHOWING UP IN MY TASK MANAGER AT STARTUP?: it shows up when i startup my pc in taskmanager for about 15 seconds then its gone? it dosent show up in taskmanager startup. i am currently running a malware scan....
  10. WHY IS POWERSHELL SHOWING UP IN MY TASK MANAGER AT STARTUP?

    in Windows 10 Software and Apps
    WHY IS POWERSHELL SHOWING UP IN MY TASK MANAGER AT STARTUP?: it shows up when i startup my pc in taskmanager for about 15 seconds then its gone? it dosent show up in taskmanager startup. i am currently running a malware scan....