Trying to figure out how to change the desktop background with powershell/batch.

The entire thing I'm doing is pretty pointless lol. But I wanted to prank my mother. This is my computer by the way nothing malicious. I just had an idea that the next time she goes to click and open opera I would have a batch files disguised as it instead
that would just say some things. Mimic deleting files. Kill exlporer.exe. Change the background to one I created saying something like GOT YA! with a troll face or something. And then either run explorer.exe again or shutdown my laptop. I don't really know
what I am doing lol. I have the batch file done but the changing of the desktop has me puzzled. I can have the batch file to replace the current bmp file with one I've made but it doesn't actually change the background. And JFY WPA files just happened to be
where I decided to sit the files for this prank at until I'm done with them.
I used this to copy it over.
copy /y "C:\Users\user\Documents\WPA Files\Internet Explorer W
allpaper.bmp" "C:\Users\user\AppData\Roaming\Microsoft\Internet Explorer\Inter
net Explorer Wallpaper.bmp"
I used this to try to get the wallpaper to refresh to show the new one before I found out this doesn't work with windows 8.1
RUNDLL32.EXE user32.dll,UpdatePerUserSystemParameters
I found this but I am not entirely sure what to do with -name or -value or if I need to do anything to them or the others.. Doubt this would even refresh or what ever to make the new wallpaper actually show though.
set-itemproperty -path "HKCU:Control Panel\Desktop" -name wallpaper -value $image
Also found this which I don't get at all..
Add-Type @"
using System;
using System.Runtime.InteropServices;
using Microsoft.Win32;
namespace Wallpaper
   public enum Style : int
       Tile, Center, Stretch, NoChange
   public class Setter {
      public const int SetDesktopWallpaper = 20;
      public const int UpdateIniFile = 0x01;
      public const int SendWinIniChange = 0x02;
      [DllImport("user32.dll", SetLastError = true, CharSet = CharSet.Auto)]
      private static extern int SystemParametersInfo (int uAction, int uParam, string lpvParam, int fuWinIni);
      public static void SetWallpaper ( string path, Wallpaper.Style style ) {
         SystemParametersInfo( SetDesktopWallpaper, 0, path, UpdateIniFile | SendWinIniChange );
         RegistryKey key = Registry.CurrentUser.OpenSubKey("Control Panel\\Desktop", true);
         switch( style )
            case Style.Stretch :
               key.SetValue(@"WallpaperStyle", "2") ; 
               key.SetValue(@"TileWallpaper", "0") ;
               break;
            case Style.Center :
               key.SetValue(@"WallpaperStyle", "1") ; 
               key.SetValue(@"TileWallpaper", "0") ; 
               break;
            case Style.Tile :
               key.SetValue(@"WallpaperStyle", "1") ; 
               key.SetValue(@"TileWallpaper", "1") ;
               break;
            case Style.NoChange :
               break;
         key.Close();
[Wallpaper.Setter]::SetWallpaper( 'C:\Users\user\Documents\WPA Files\Internet Explorer Wallpaper.bmp', 0 )
And this to run the powershell script once I have one lol
PowerShell -NoProfile -ExecutionPolicy Bypass -Command "& {Start-Process PowerShell -ArgumentList '-NoProfile -ExecutionPolicy Bypass -File ""C:\Users\user\Documents\WPA Files\desktopchange.ps1""' -Verb RunAs}"

Haha you're funny. I can't decide if you sincerely want me to learn or if you enjoy my struggle(I'm dumb) and think I'm up to no good. I do enjoy learning though :). 
If I thought you were dumb I would have ignored you.  I just think it would be more fun for you to find the answers.  This is a technical forum and not a free answer forum.  It is for people who are learning or who have specific technical
questions.  I am dropping you in the "might be learning" bin.  If you had asked a specific technical question I would have answered it.
¯\_(ツ)_/¯

Similar Messages

  • Trying to figure out how to change the tuning of certain notes so I can play notes in between pitches for example the middle note between B

    Trying to figure out how to change the tuning of certain notes so I can play notes in between pitches for example the middle note between B & C or E & F. I can use different tracks if needed but I would prefer to know how to do it for individual notes as well. They have to be exactly in the middle so it's not out of tune.

    Danny,
    The theme to Doctor Who is in 12/8. In music theory, there's no such thing as a 12th note, the notation and nomenclature is all based on things being divisible by four. So for the diddly-dum feel to happen, you have to give the beat to a quarter note plus another eighth note -- we call it a dotted quarter note, and now you have three eighth notes per beat so you can go diddly. So, since you can't call the time signature 12/dotted quarter, you call it 12/8 and go faster. Make sense? Anyway, for GB's purposes, all you need to know is that you'll get that feel by choosing 12/8.

  • I cannot figure out how to change the photo size on my iPhone 5s.  I was given the choice of small, medium or large the first time I took a picture.  Now I have no idea how to change it to medium.  Can anyone help?

    I cannot figure out how to change the photo size on my iPhone 5s.  The first time I took a pic it asked if I wanted smalll,  medium or large and listed the pixels.  I chose small but am now finding that is too small.  Can anyone help me set it to medium now?  I can't find any setting for that.  I'm a newby to iPhones and have no idea what I'm doing.  Thanks for any help you can offer.

    By "sending" do you mean sending email?
    If so, what app are you using to take the photos on your iPhone 5? Or are the photos from a different source (saved to your Camera Roll from somewhere else, like a web page or Messages)?
    My guess is that Mail gives you the option to send different file sizes when it detects you are trying to Mail a really large photo file. The size of photos on the iPhone 5 is really big and some email providers may stop your mail from being delivered if attachments are too large. Thus, Mail tries to help you by offering to resize the photo.
    I suspect that if you are sending smaller files, Mail does not bother giving you options to save a smaller version. In fact, I have seen this behavior. So, if the photo is already "small enough", it gets sent as-is.
    To my  knowledge, there is no global iOS setting for this. Some apps may have different rules, of course.

  • I like the mail feature with one exception; I cannot figure out how to change the font size of incoming mail permanently.  And, when answering an email I have to highlight the first few words and zoom it so I can see what I am writing.  what am I missing?

    I like the mail feature with one exception; I cannot figure out how to change the font size of incoming mail permanently.  And, when answering an email I have to highlight the first few words and zoom it so I can see what I am writing.  what am I missing?

    You can type the email using what you set in preferences and then highlight the text and use command - minus sign (or command - + for larger) to reduce the size of the text.
    You can also type command - T and a window will appear allowing you to select fonts/sizes/color/ background highlight.
    The above works in Notes also. I haven't tried to do this in any other Apple application.
    For incoming emails, you can use the above to reduce font size, but I don't know of a way to permanently set the incoming font size to a default.

  • HT201209 I need assistance with trying to figure out how to change my security code answer

    I need assistance with trying to figure out how to change my security code answer

    If you mean the answers to your security questions, then f
    rom http://support.apple.com/kb/HT5665 :
    If you have three security questions and a rescue email address
    sign in to My Apple ID and select the Password and Security tab to send an email to your rescue email address to reset your security questions and answers (the steps half-way down that page should give you a reset link)
    If you have one security question and you know your Apple ID passwordsign in to My Apple ID and select the Password and Security tab to reset your security question.
    If you have one security question, but don't remember your Apple ID passwordcontact Apple Support for assistance. Learn more about creating a temporary support PIN to help Apple confirm your identity when you contact Apple Support.
    If you can’t reset them via the above instructions (you won't be able to add a rescue email address until you can answer your questions) then you will need to contact iTunes Support / Apple in your country to get the questions reset.
    Contacting Apple about account security : http://support.apple.com/kb/HT5699
    When they've been reset (and if you don't already have a rescue email address) you can then use the steps half-way down this page to add a rescue email address for potential future use : http://support.apple.com/kb/HT5312

  • Can't figure out how to change the bottom margins

    This is my 3rd day with a mac and I can't figure out how to change the margins in Pages '09 so that it doesn't include a .5 margin on the bottom.
    I'm using a HP OfficeJet J6450. In the page setup, I changed the "untitled" user defined margins to .1 for top and sides and 0 for the bottom and it still includes a .5 margin on the bottom. Changing the untitled seems to help side margins.
    I've used the inspector to see if there is a setting there that defines the bottom margin as .5 and that doesn't seem to do it.
    If I print borderless, the text boxes that I have a .3 border around don't print on the edges even though they show up on my workspace. It also throws off the top and bottom.
    This is a big assumption, but I assumed that if the workspace and rules show white space and now grayed out, it would print that way. It's not.
    Any ideas? Thanks! Ana
    P.S. I've downloaded & installed updates for everything - OS, iWorks, Printer

    Peggy,
    Maybe this is true of Macs? On my windows systems - I can specify more options on both my printers and can print beyond .5 inches at the bottom. One specific option on my J6450 that I can select is "minimize borders" and it will print about .1 or .2 from the edge. On my mac, I do not have that feature to select. If I print borderless, even though my layout shows it should not go off the paper, once printed it does.
    Thanks.

  • I got an ipod touch from my friend, but can't figure out how to change the apple id to get games. Help?

    I got an ipod touch from my friend, but can't figure out how to change the apple id to get games. Help?

    Never mind, I got this.

  • I modified the budget categories on the numbers template so now the transaction tab does not communicate with the budget tab. I figured out how to change the drop down options but how do I get it to reflect on my budget sheet? Please help.

    If you are familar with the Numbers Budget Template it has two tabs 'Budget' and 'Transactions'. If you use the template as it is designed when you input expenses on the transaction tab it will automatically add that amount into the selected category on the budget tab. I have madified my budget tab to reflect the caegories that I need, which included adding several to the template. I also added to the table so it reflects my income and expenses so I can track where I am at with a glance. Since I did this, I can't get my transactions tab to communicate with the budget tab. I figured out how to change the options in the drop down box for category but I con't figure out how to get it to reflect onto my budget tab. I'm sure that it is an easy fix, however, I am just not well versed in Numbers. I appreciate your time in helping me with this issue.
    Respectfully,
    Jon

    My guess is that while you added catetories to your Budget Sheet by adding new lines and filling in the category column, you didn't also add the formulas to these new budget lines.
    The proper way to add those lines would have been to select a cell in the line just above where you want to add a line and type Option/Alt-DownArrow. This would have copied the formulas into the new line. Maybe you did this, and maybe not. You didn't give details on how you added the lines.
    Select C2 and D2 and Command-C to copy them to the Clipboard.
    Select all the cells of Columns C and D except for the top and bottom rows and Command-V to Paste.
    If I have properly guessed the problem, you should be in business. This assumes that your Categories are exaclty the same as the entries in your Pop-up menus. Spelling counts, as does case.
    Jerry

  • My iPhone 4S is not showing up in iTunes.  I've never had this issue before, but I'm finding it a little frustrating trying to figure out how to rectify the situation.  Any suggestions would be greatly appreciated.

    My iPhone 4S is not showing up in iTunes.  I've never had this issue before, and I'm finding it a little frustrating trying to figure out how to rectify the situation.  If anyone knows how to fix this problem, please advise.  Otherwise any suggestions would be greatly appreciated.

    Hi Josie,
    I understand that you are having issues with iTunes recognizing your iPhone 4S. Let's see if we can tackle this.
    The following resource will provide helpful steps in resolving this issue, pay specific attention to Steps 3-6 as these usually resolve this sort of issue.
    iOS: Device not recognized in iTunes for Windows
    http://support.apple.com/kb/TS1538
    Thanks,
    Matt M.

  • HT2931 I am trying to figure out how to get the pre made "beats" with my garage band for my MacBook Air can u help

    I am trying to figure out how to get the pre made "beats" with my garage band for my MacBook Air can u help

    Hello Mattxy2,
    Thank you for the question. It sounds like you would like to add some Apple Loops to your project.  I recommend reviewing the following sections in Garageband Help:
    GarageBand Help - Search for Apple Loops
    http://help.apple.com/garageband/mac/10.0/#gbnd3002ab64
    GarageBand Help - Add Apple Loops to your projects
    http://help.apple.com/garageband/mac/10.0/#gbndc1d3db81
    Thank you for using Apple Support Communities.
    Best,
    Sheila M.

  • I have recently had to fire my web designer who was using iWeb.  Now I'm trying to figure out how to get the site to open in iWeb on my new MacBook Pro.  Is there a way?

    I have recently had to fire my web designer who was using iWeb.  Now I'm trying to figure out how to get the site to open in iWeb on my new MacBook Pro.  Is there a way?

    Firstly iWeb CAN'T IMPORT any kind of published html code as it has no import facility.  You can however add html code, javascript and css by selecting the html snippet and placing it on your page the entering the code in here and clicking on Apply.  You DO NOT create a shape as you say - you use the html snippet and place your code in there.
    There are not really a lot of ways in which you can write code - if you want to enter small amounts of code, then you would use an ordinary text editor to do this such as Text Edit on a Mac or Text Wrangler.  If you want to add code to iWeb like this, then you would either use the html snippet method in iWeb itself or you would have to publish the site to a local folder from iWeb and open the relevant html page with a text editor and add the additional code in this way and then publish.  However, if he decided to add the code with a text editor, then you would have to upload the pages directly to the server using an ftp client - if you try to upload the site directly from iWeb, all the extra code will be overwritten.
    As for checking whether the site was created using iWeb, all you need do is view the site in Safari and then click on View and then select View Source Code and it will tell you.
    Even thoough extra code was added to the site and he might well have done this by publishing to a local folder and adding the code with a text editor, he should still have the domain file for the site too.
    Ask again.  I'm sure that for adding quick code, most would not want to use programmes such as Dreamweaver, but a simple text editor will suffice.  As OT already said, if he claims that he does not have the domain.sites file, then try Flux 4 which is a web design programme and has full import facilities.  At least this way, if he just gives you the published version of the site, you have some way of opening it.
    You can download a free trial of Flux 4 and you can also purchase the full version from the Mac App Store if you decide you like it.

  • I have just installed Illustrator CS6 yesterday, but I found it was in French. Could help me figure out how to change the language into English?

    I have just installed Illustrator CS6 yesterday, but I found it was in French. Could help me figure out how to change the language into English?
    I got my series number from my Institut (which is in Paris, FR). I do not use Creative Cloud.
    When I was installing the software, I cannot select a language.
    Could you help me with my problem? Do I have to get a different series number?

    lunc,
    You will have to get a new application in English, to replace the French one.
    You, or your Institute will have to get help from Adobe, I am afraid.
    You may try a chat here,
    Get help with orders, refunds, and exchanges (non-CC, chat open between 5AM and 7PM PST/PDT on workdays)
    http://helpx.adobe.com/x-productkb/global/service-b.html
    or (have your Institute) talk to Adobe in France
    http://helpx.adobe.com/adobe-connect/adobe-connect-phone-numbers.html
    If you fail to get any help, please report back here, and I will ask a special forum staff friend to try to find the right one at Adobe to have things sorted out.

  • Hi, I have a Apple TV and we are trying to figure out how to transfer the iPad to our tv. Any ideas? Thanks

    Hi, I have a Apple TV and we are trying to figure out how to transfer the iPad to our tv. Any ideas? Thanks

    You can connect via a cable or wireless using an Apple TV.
    http://ipad.about.com/od/iPad_Guide/a/How-To-Connect-Your-Ipad-To-Your-Tv.htm
    iPad Accessories: Connections for a TV or Projector
    http://www.dummies.com/how-to/content/ipad-accessories-connections-for-a-tv-or-p rojector.html
    You may be interested in AirPlay on the Apple TV:
    Apple - AirPlay - Play content from iOS devices on Apple TV
    http://www.apple.com/airplay/
    Alternately, there are Apple Digital AV Adapters for hardwired connections:
    iOS: About Apple Digital AV Adapters
    http://support.apple.com/kb/ht4108
    Look at the Apple TV manual
    http://support.apple.com/manuals/#appletv
     Cheers, Tom

  • TS1702 I cannot get an unlocked version of drivesafe.ly to operate on any accounts on my iphone 4S and have had no help when I asked them for support.  I am now trying to figure out how to refund the product.  Anyone know how to make that request through

    I cannot get an unlocked version of drivesafe.ly to operate on any accounts on my iphone 4S and have had no help when I asked them for support.  I am now trying to figure out how to refund the product.  Anyone know how to make that request through itunes?

    Try assigning Queen as the Album Artist on the compilations in iTunes on your computer.

  • Am trying to figure out how to use the other section in my ipod touch?

    I have filled up the music and video sections of my ipod touch.An am trying to figure out if i can use the other section to load movies(how would i format that section or us that toward more movies?

    Hi ghost ninja: The "other" section on your iPod Touch is most likely your operating system. Probably not a good idea to get rid of it.
    Stedman

Maybe you are looking for