3اسکرپٹ کے ساتھ ونڈوز ڈیسک ٹاپ سلائیڈ شو کو فعال کریں

I’ve been updat­ing my unat­ten­ded win­dows deploy­ment setup recently, and one of the things I wanted to enable was the slideshow wall­pa­per with the loc­a­tion set to my wall­pa­pers loc­a­tion on my serv­er. This isn’t as straight-for­ward as it ought to be, but after bit of fid­dling around I figured out how to do it fairly simply.

2 parts are neede — a reg script and copy­ing a file (which I do via a self-extract­ing archive file).

رج اسکرپٹ مندرجہ ذیل ہے

ونڈوز رجسٹری ایڈیٹر ورژن 5.00

[HKEY_CURRENT_USER  کنٹرول پینل  شخصی کاری  ڈیسک ٹاپ سلائیڈ شو]
"وقفہ"= ڈورڈ:000927c0
"شفل کرنا"= ڈورڈ:00000001

[HKEY_CURRENT_USER  سافٹ ویئر  مائیکروسافٹ  ونڈوز  کرنٹ ورژن  ایکسپلورر  وال پیپر]
"سلائیڈ شو سورس ڈائرکٹریاں سیٹ کریں"= ڈورڈ:00000001
"پس منظر کی قسم"= ڈورڈ:00000002
"سلائیڈ شوڈائریکٹریپیٹھ 1"="/طویل بے ترتیب نظر آنے والا تار یہاں جاتا ہے"

Note — you will need to set up the slideshow with the cor­rect path on one of your پی سی and then export the value for “SlideshowDirectoryPath1” from your registry for this to work

دوسرا حصہ سلائڈ شو.ini نامی ایک فائل کاپی کرنا ہے (also after set­ting up your own slideshow) جس میں رہتا ہے %appdata%\Microsoft\Windows\Themes

The con­tents of this file con­tain an encoded ref­er­ence to the loc­a­tion of your slideshow I believe.

Once you have copied the file and impor­ted the reg file you just need to restart explorer or wait for the inter­val peri­od to pass (میرا سیٹ ہے 10 منٹ) and I have shuffle turned on — your val­ues may be dif­fer­ent if you set them dif­fer­ently and export the changed val­ues from the registry

I have put my slideshow.ini into a self-extract­ing exe that extracts to (اور خاموشی سے زیادہ لکھتے ہیں) %appdata%\Microsoft\Windows\Themes. میں پھر چلتا ہوں اپنا 2 com­mands using the fol­low­ing Syn­chron­ousCom­mands in my ImageUnattend.xml

<ہم وقت ساز کمانڈ ڈبلیو سی ایم:کارروائی ="شامل">
  <ترتیب>6</ترتیب>
  <تفصیل>سلائڈ شو محل وقوع مرتب کریں</تفصیل>
  <کمانڈ لائن>ج:\ایکسٹراز  slideshow.exe</کمانڈ لائن>
</ہم وقت ساز کامانڈ>
<ہم وقت ساز کمانڈ ڈبلیو سی ایم:کارروائی ="شامل">
  <ترتیب>7</ترتیب>
  <تفصیل>سلائڈ شو کو قابل بنائیں</تفصیل>
  <کمانڈ لائن>ج:\ایکسٹراز-ایلیویٹ-سی ریگ امپورٹ سی:\ایکسٹراز  سلائیڈ شو.ریگ</کمانڈ لائن>
</ہم وقت ساز کامانڈ>

For more inform­a­tion about my use of the com­mand “elev­ate” and hav­ing files in the c:\extras folder please read my pre­vi­ous art­icle about how I used a “بیچ اسکرپٹ محفوظ DHCP نام کی بنیاد پر پی سی کا نام تبدیل کریں"

Leave a Reply

3 تبصرے

Jجیمز

Seems Microsoft has changed some­thing, or they don’t do it the same for all con­fig­ur­a­tions. When I turn on slid­show for my ref­er­ence PC, there is no slideshow.ini file to copy in %appdata%\Microsoft\Windows\Themes. Instead, to files get cre­ated named transcoded_000 and transcoded_001.

It’s almost like Microsoft does­n’t want us to be able to eas­ily con­trol slideshow using scripts.

جواب دیں
JSجون سکائف

Hi James
These instruc­tions were for Win­dows 10 — they still seem to work for that. Are you using win­dows 11? If so no doubt Microsoft will have changed things for no good reason
Also note — I had to cre­ate a slideshow for these files and set­tings to appear. I then copied the file to oth­er machines to make this work. So if you haven’t first set up a slide show then I guess the ini file won’t exist

جواب دیں
JSجون سکائف

Hi James
I real­ise it has been a long while, but I just checked this on win­dows 11 (build 23H2) and there is def­in­itely still a slideshow.ini in that folder
It is a hid­den file by default so you would need to change explorer options to view hid­den files

جواب دیں