Change default program through script

solarnoise

New member
Local time
2:42 AM
Messages
9
Hi guys, I'm in a new IT job for a computer lab and I'm picking up skills for maintaining it as I go along.

I need to change the default program for a filetype on all machines in the lab. If I just log on as admin and change it under my account, the change doesn't persist for the non-admin users.

I was thinking of maybe writing a script that will change the file association for all users but am not sure how to go about this.

Can anyone offer direction or help? Google turned up some old threads that weren't very helpful.
 

My Computer

OS
Windows 7 RC
CPU
Intel E8400 @ 3.6 GHz, 1.32v
Motherboard
EVGA 750i FTW
Memory
Corsair Dominator 4GB @ 1066 MHz, 5-4-4-12
Graphics Card(s)
EVGA GTX260 core 216
Sound Card
Realtek HD Audio
Monitor(s) Displays
HP w2207h
Screen Resolution
1680 x 1050
Hard Drives
2 x Seagate Barracuda 320GB (Raid 0)
PSU
Corsair HX620
Case
Antec P182
Cooling
Xigmatek HDT-S1283
Keyboard
HP KB-0630
Mouse
Logitech MX518
Internet Speed
2MB down, 350KB up
Open a Command Prompt and enter ftype /?. It will show you how to use the ASSOC and FTYPE commands to do what you want.
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Lenovo IdeaCenter 450
OS
Windows 10 Pro X64
CPU
Intel Quad Core i7-4770 @ 3.4Ghz
Memory
16.0GB PC3-12800 DDR3 SDRAM 1600 MHz
Graphics Card(s)
Intel Integrated HD Graphics
Sound Card
Realtek HD Audio
Monitor(s) Displays
HP 22" LCD
Screen Resolution
1680 x 1050
Hard Drives
250GB Samsung EVO SATA-3 SSD
2TB Seagate ST2000DM001 SATA-2
1.5TB Seagate ST3150041AS SATA
Keyboard
Dell USB
Mouse
Lenovo USB
Internet Speed
Cable via Road Runner 3MB Upload, 30MB Download
Antivirus
Windows Defender, MBAM Pro, MBAE
Browser
Seamonkey
Other Info
UEFI/GPT
PLDS DVD-RW DH16AERSH
Set program access and computer defaults
 

Attachments

  • Capture.JPG
    Capture.JPG
    35.2 KB · Views: 51

My Computer

Computer Manufacturer/Model Number
Dell and Custom
OS
Systems 1 and 2: Windows 7 Enterprise x64, Win 8 Developer
CPU
System 1: i7 [email protected], System 2: AMD FX-4100 Zambezi 3.6G
Motherboard
System 1:Dell 06NWYK System 2: ASUS M5A97 AM3+
Memory
System 1: 8GB System 2: 8GB
Graphics Card(s)
System 1: ATI FirePro V4800 System 2: Radeon HD 6850
Sound Card
System 1: onboard System 2: onboard
Monitor(s) Displays
System1: Viewsonic HDMI 24"
Screen Resolution
System 1: 1920x1080 System 2: 1920x1080
Hard Drives
System 1: Mirrored .5B drives System 2: Seagate Barracuda ST1000DM003 1TB 7200 RPM 64MB Cache SATA 6.0Gb/s
Case
System 1: Dell System 2: Cooler Master
Internet Speed
10 MBPS
Back
Top