I need an example script Powershell in Windows 7

I can repeat this request I presented during my "subscription", but he doesn't know if it took.

I would be recognizing an example of a Windows Powershell Script that looks up a record in a file and displays the content of this record on my screen. Records are scanned from Documents. They are scanned by user 'XX' within the Date.

The path is: C:\Documents\DailyPosting

I've programmed in a distant past, but did not use scripts. If I had an example I could go from there. I don't read very well of manuals.

I am 78 years old. Would be grateful yourhelp!

Thank you

Cmawsquaw

Hello

The question you posted would be better suited in the TechNet Forums. I would recommend posting your query in the link below.

http://social.technet.Microsoft.com/forums/en/category/scripting

Hope this information helps.

Tags: Windows

Similar Questions

  • Planning and running my script powershell crashed Windows 7

    Hi all

    I created a powershell script that works perfectly when I run it using powershell. Just, it reads XML files and email some information on their part. But as soon as I have this schedule using the Windows Task Scheduler and run it, it blocks the windows. First of all, trying to open the Task Scheduler, after planning script, it give error, the Task Scheduler service is not available. Then I rebooted my system, and windows starts in recovery mode. I even tried windows recovery to a point recorded earlier, but also, that did not help. My BUSINESS team had to redeploy full Windows 7 on my system. I already tried this on two different systems, both with Windows 7 Professional and it crashes in the same way.

    Please help me understand what I am doing wrong.

    I don't know how to download my forum script, please let me know if any of you wish to have a look, and I'll send my code.

    Thank you

    Vittoz

    _______@____.com

    Hello Ashish,

    Thanks for posting your question on the Microsoft community.

    This question fits better to the developers on MSDN forums.

    I suggest you to ask your question on the MSDN forums.

    MSDN forum
    https://social.msdn.Microsoft.com/forums/en-us/home?category=windowsdesktopdev

    Thank you

  • Need a script Powershell inventory VM

    Hello

    Need a script powershell to collect them below, has held information from the virtual Center.

    vmname | Name of ESX. Memory (GB) | County of vCPU | vNIC County | IP address (all) | VMDK (s) size (GB) | Total size (GB) vmdk | Name of the data store. The Tools version. to update the tools | actions | Reservations (MB) | Limit (MB) | County snapshot | Guest operating system

    VMDK (s) size (GB)-> need all size vmdk from the separated from the vm by ''. EX: for a virtual machine of 3 size vmdk 20,20, 10 GB each the output would be 2020 + 10

    The name of the data store-> name of the data store where the VMX.

    Update of the tools-> State of necessity as old or updates

    You will find the combined VM version of script 3 attached information. If you want only some of the fields, as in the VMX and VMDK script, you can use the Select-Object cmdlet to select only the fields. The next oneliner will use the script Get-information - v3.ps1 to generate the output of the VMX and VMDK script:

    ./Get-VMInformation-v3.ps1 | Select-Object -property VMname,VMXName,VMDKName,VmdkSizeGB,TotalVmdkSizeGB,DatastoreName
    

    Robert

  • Need an example of script for the waiting time expected

    Hello

    Does anyone have an example script that they can send me that indicates how and where to use statistical control of get and how to generate a prompt to read a message to a caller who says what is the waiting period?

    Thank you

    Chuck

    [email protected] / * /.

    There is a position in the queue thing.

    First you stor in the parameter value and then read it...

    My modified script which should explain is attached. You can actually use, but must change that I deleted my customer info.

    Please note so useful.

    Thank you

    Barnes.

  • The package PowerCLI script in the Windows executable file / install

    What are the options for packaging / embed PowerCLI script in Windows. EXE file? I would like for several departments to be able to run and collect information from the script without having direct access to the code. This would ensure that the code has been correctly run without modification.

    I know that PowerCLI will be available on these systems, searching for the PowerCLI is not necessary.

    I read that the Primal Script has this ability, but I want a solution that is free and easy to use, if possible.

    If it is not an executable file, maybe even a file coded which makes it difficult for a layman to make changes.

    Thanks in advance for the help!

    I used a similar function of Johan Akerstrom in the past (since I don't have the community installed Extensions).

    See his post Powershell script to generate an executable from a powershell script .

    For this one, I know there is no problem with parameter passing.

    Take this example script

    param(
    [parameter(Mandatory = $true)][string[]]$server)
    
    [void][system.reflection.assembly]::LoadWithPartialName("System.Windows.Forms")
    Add-PSSnapin -Name VMware.VimAutomation.Core
    
    Connect-VIServer -Server $server[windows.forms.messagebox]::Show("Connected to " + $defaultViServer.Name)
    $VM = Get-VM[windows.forms.messagebox]::Show("I counted " + $VM.Count + " guests")
    
    Disconnect-VIServer -Confirm:$false
    

    Note that the script uses Windows Forms to the output data.

    You create the EXE file as follows. I recorded the example script under DoExeTest.ps1

    PS C:\Scripts >.\DoExeTest.ps1 new-PSExecutable
    Script source file: C:\Scripts\DoExeTest.ps1
    Output executable: C:\Scripts\doexetest.exe

    And when you run this, it displays 2 message boxes, one with the name of the vCenter and the other with the number of guests, the script is located in the vCenter.

    C:\Scripts>doexetest.exe 'Site '.

                  

  • "On the splash screen, it says can not find script file"c:\windows\run.vbs "and on top of that, my screen is empty

    Original title: computer problem

    "Last night I turned on my computer and the screen starts it sayscannot find script file"c:\windows\run.vbs "and on top of that, my screen is empty. I tried to run in safe mode, but I noticed the same problem. can anyone help

    Hello

    Thanks for posting your query on the Microsoft Community.

    According to the description, I understand that you are getting a message on the start screen.

    I suggest you to refer to the suggestions of ThrashZone replied on January 30, 2016 and check if that helps.

    http://answers.Microsoft.com/en-us/Windows/Forum/Windows_7-performance/getting-an-error-message-when-turning-the-computer/77eb910c-Bebb-4fc0-bf58-db3ca7b90033

    Warning of the BIOS:

    BIOS change / semiconductor (CMOS) to complementary metal oxide settings can cause serious problems that may prevent your computer from starting properly. Microsoft cannot guarantee that problems resulting from the configuration of the BIOS/CMOS settings can be solved. Changes to settings are at your own risk.

    Hope this information helps. Please let us know if you need any other help with Windows in the future. We will be happy to help you.

  • Need help with script java folder level for silent registration with unique file name

    That's what I'm trying to do

    1. when a person completes the request on one of our computers in the office, there will be a button send at the bottom of the application.

    2 submit the application on is automatically stored on the local server with the file name determined by the fields name and surname on the application.

    example - John Doe Application.pdf

    Saved in the folder C:\Users\Station1\Desktop\FinishedApplication.jpgApplications

    3. This is the example of code I found, but I don't know how to enter which fields determine save name and where to save it to.

    http://thelivecycle.blogspot.de/2015/06/save-with-new-name-in-specified.html

    http://thelivecycle.blogspot.de/2015/06/save-with-new-name-in-specified.html http://thelivecycle.blogspot.com/2009/11/save-form-to-specific-directories-and.html

    Thank you!

    Lol this is the part that you need as a script to the folder level:

    var lcbSaveAs = app.trustedFunction (function (vDoc, vPath) {}

    app.beginPriv ();

    vDoc.saveAs ({cPath: vPath});

    app.endPriv ();

    });

    This is the code you use in your file:

    lcbSaveAs (, "/ C/users/specialisee1/Desktop/result /" + this.getField("FirstName").valueAsString + "" + this.getField("LastName").valueAsString + "Application.pdf");

    lcbSaveAs is the name of the function of trust.

    vDoc.saveAs is the Document object, call the saveAs method.

    I don't know what oDoc.SaveAs is, or where you got it.

  • I need help, find how to install Windows Vista on a HP Pavilion 6475z disk.

    I need help, find how to install Windows Vista on a HP Pavilion 6475z disk.   I had to replace the hard drive, so he has nothing about it and I added more ram, but I replace the cd player so it is not yet installed on the HP.   So I was wondering if I could put the installation disc in my laptop cd/dvd and connect computers by usb ports and install it this way and if not how can I?

    Thank you

    Hello

    You are welcome

    If the CD/DVD drive in the works of PC Gateway, you can (at least temporarily) remove it and install it in the HP, you can run your recovery disc and reinstall Vista.  Once everything is running on the HP, you can always remove the CD/DVD drive and reinstall it in the gateway PC if you wish.

    Kind regards

    DP - K

  • I need help deleting a folder named, Windows Live Safety\HistoryStore,

    I need help deleting a folder named Windows Live Safety\HistoryStore, I am running windows XP with service Pack 3, this particular file is read-only and hidden also can you help me please.

    Joseph Borg.

    I think that you need to uninstall the family safety program, take a look at this web page under XP: -.

    http://Windows.Microsoft.com/en-us/Windows-Live/Family-Safety-remove-uninstall-FAQ

    It will be useful.

  • Hello, PLS I need help I can't install Windows live messenger

    Hello PLS I need help I can't install Windows live messenger pls help me so when I try to download and then I see a message could not install programs windovs use update to download the latest version of Installaer Windows and then try again: PLIS HELP ME OUT coz my endlish isn't God can u send me pls e direkt link for this problem of fixit pls * address email is removed from the privacy * I have instalet Sistem mikrosoft version 2002 service pack 2 XP Prefesional my any is XP I I 2.67 GHz 1.24 GB of Ram i thank you very much for your help

    Hi valeria2012,

    You should be able to manually download KB2360937 from here:

    http://www.Microsoft.com/en-US/Download/details.aspx?displaylang=en&ID=17751

    Also, you can take a look at the article below for troubleshooting on your particular error:

    http://support.Microsoft.com/kb/956703

    I hope this helps!

  • I need to reinstall it on a Windows XP Professional (SP3) but cannot find how - can someone help me please

    Unavailable Windows Firewall...

    I need to reinstall it on a Windows XP Professional (SP3) but cannot find how - can someone help me please

    To install the Windows Firewall, follow these steps:

    1. Click Start, click run, type cmd, and then click OK.
    2. At the command prompt, type the following command and press ENTER:
      Rundll32 setupapi, InstallHinfSection Ndi-Steelhead 132 %windir%\inf\netrass.inf
    3. Restart Windows,
    4. Click Start, click run, type cmd, and then click OK.
    5. At the command prompt, type the following command and press ENTER:
      Netsh firewall reset
    6. Click Start, click run, type firewall.cpl, and then press ENTER. In the Windows Firewall dialog box, click on (recommended), and then click OK.
  • "Input error: can not find script file"c:\windows\system32\prnport.vbs.""

    Hello everyone.  I looked for some time and found no solution for this problem, so please forgive me if the answer has recently given or easily acquired.  My desktop running Windows XP seem to be missing the script "prnport.  I've looked up and down, but can't find it.  According to http://technet.microsoft.com/en-us/library/bb490975.aspx and many other sources, the typical place lies the \system32 folder.  Any help is much appreciate and thank you very much.

    -Matt

    I was unable to find it on the installation disc.  Instead, I just took the script from a Windows 7 machine and placed in the computer XP system32 folder.  So far, things have been working well.  Thanks again.

    -Matt

  • my laptop Compaq Presario C700 work W/vista to 1.1/2 years, seems, I launch my recovery disk 2. I need to know my identical key windows product or need to re-register

    my laptop Compaq Presario C700 work W/vista to 1.1/2 years, seems, I launch my recovery disk 2. I need to know my identical key windows product or need to re-register

    Hello

    Most laptops have the product key on a sticker on the bottom of the machine. If yours is not readable, you should contact Compaq support: http://www.compaq.com/cpq-country/cpq_support.html

    You will not need to register your software. Good luck, Rick Rogers, aka "Crazy" - Microsoft MVP http://mvp.support.microsoft.com Windows help - www.rickrogers.org

  • Do you need to be online to download windows updates?

    I'm on Vista Ultimate, do you need to be online to download Windows updates?

    Yes you need to be online, internet connection, download anything

  • Is there something special I need to do to upgrade to Windows 7 Vista 64? I keep my icons the desktop and Favorites, etc. ?

    upgrade to Windows 7 Vista 64

    Is there something special I need to do to upgrade to Windows 7 Vista 64? I keep my icons the desktop and Favorites, etc. ?

    Just the usual if update Vista 64 for Windows 7 64-bit.

    Make sure you have a backup system and separate backups of your files user such as documents, images, videos, music, email and such stores. In addition, it is wide to ensure you have a way of rerstoring any application that you have added to the original instrall factory.

    Good luck and enjoy your new system.

    Tom Ferguson

Maybe you are looking for

  • Lost Planet dx9 d3derr_notavailable

    When I run the application d3derr_notavailable think I have to upgrade my card graph & also dx9 !!!!!!!!!!!!!! PLS ANY ONE GIVE HOW IT WILL WORK WITHOUT ERROR

  • Windows crash 0xc000000f. What is missing?

    My Toshiba laptop with Windows Vista Home Premium crashed (Windows which broke down). Message on screen is 'Windows couldn't start. A recent hardware or software... "0xc000000f error code appears with information: the boot selection failed because a

  • Plug di Skype toolbars in goole crome

    sALVE A TUTTIa TR bloccano chi him pages pole not if caricano I plug di Skype toolbars in goole crome? Qualcuno mi aiuta? disinstallare I wanted my non capisco Dove e come farlo. Grazie a tutti 5s

  • hide the page options on a dashboard in 11G

    HelloIn version 10G, we used a script to hide the menu of controls in page on some dashboards. In 11G the same script does not work for the options on the page. Can anyone help answer how I can do this or even better just how to hide the button ' cle

  • Type not responding do not to the pixel format settings

    Hi all - I have a question that has me completely confused. I use the version of the 2015.3 of output from AE and create a project with a composition that is 1920 x 1080 with a pixel square BY. In this composition, I have some type - the word "CONVER